package com.xuecheng.content;


import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableSwagger2Doc
@SpringBootApplication(scanBasePackages = {
        "com.xuecheng.content", "com.xuecheng.common.exception"
})
@EnableApolloConfig  //开启 Apollo 配置功能
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.xuecheng.content.agent")
public class ContentApplication {

    public static void main(String[] args) {
        SpringApplication.run(ContentApplication.class, args);
    }
}